package com.specter.test;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * 内置的测试应用
 * 
 * @author Liang.Wang
 * @since 2020-02-24
 * @version 1.0
 */
@SpringBootApplication(scanBasePackages = "com.specter")
public class StartupApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(StartupApplication.class, args);
	}

	@Override // 为了打包springboot项目
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(this.getClass());
	}

}
